import _fetch from './request'

// 获取数据
function getBussiness(params) {
    return _fetch({
        url: '/enterprise/list',
        params
    })
}

// 设置企业状态
function setBussinessStatus(data){
    return _fetch({
        url: '/enterprise/status',
        method:'post',
        data
    })
}

// 新增企业
function addBussiness(data){
    return _fetch({
        url: '/enterprise/add',
        method:'post',
        data
    })
}

//编辑企业
function editBussiness(data){
    return _fetch({
        url: '/enterprise/edit',
        method:'post',
        data
    })
}

// 删除企业
function removeBussiness(data){
    return _fetch({
        url:'/enterprise/remove',
        method:'post',
        data
    })
}

export {
    getBussiness,
    setBussinessStatus,
    addBussiness,
    editBussiness,
    removeBussiness
}